/**
 * 中华非遗官方网站主样式表
 * 采用现代化设计理念，注重用户体验和视觉美感
 */

/* =================== 全局样式重置 =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =================== 基础样式设置 =================== */
:root {
    /* 主色调配置 */
    --primary-color: #d32f2f;        /* 中国红 */
    --secondary-color: #8b4513;      /* 古铜色 */
    --accent-color: #ffd700;         /* 金黄色 */
    --text-dark: #2c2c2c;           /* 深色文字 */
    --text-light: #666666;          /* 浅色文字 */
    --background-light: #fafafa;     /* 浅色背景 */
    --white: #ffffff;                /* 纯白色 */
    --border-color: #e0e0e0;        /* 边框颜色 */
    
    /* 莫兰迪色系配置 */
    --morandi-blue: #8B9DC3;         /* 莫兰迪蓝 */
    --morandi-green: #A8C8B6;        /* 莫兰迪绿 */
    --morandi-pink: #D4A8A8;         /* 莫兰迪粉 */
    --morandi-purple: #B8A8D4;       /* 莫兰迪紫 */
    --morandi-yellow: #E8D5A8;       /* 莫兰迪黄 */
    --morandi-gray: #C5C5C5;         /* 莫兰迪灰 */
    --morandi-white: #FEFEFE;        /* 莫兰迪白 */
    --morandi-text-primary: #5A5A5A; /* 主要文字色 */
    --morandi-text-secondary: #8A8A8A; /* 次要文字色 */
    --morandi-border: #E8E8E8;       /* 边框色 */
    --morandi-shadow: 0 4px 20px rgba(139, 157, 195, 0.15); /* 阴影 */
    --morandi-shadow-lg: 0 8px 32px rgba(139, 157, 195, 0.2); /* 大阴影 */
    --morandi-card-bg: #FFFFFF;      /* 卡片背景 */
    --morandi-gray-light: #F8F9FA;   /* 浅灰背景 */
    
    /* 字体大小设置 */
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;
    
    /* 间距设置 */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 40px;
    --spacing-xxl: 50px;
    
    /* 阴影效果 */
    --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* 过渡动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 移动端基础优化 */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* =================== 通用容器样式 =================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* =================== 头部导航样式 =================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(211, 47, 47, 0.03) 0%, 
        rgba(139, 69, 19, 0.02) 50%, 
        rgba(255, 215, 0, 0.02) 100%);
    pointer-events: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
    z-index: 2;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.8);
}

.logo:hover::before {
    opacity: 0.1;
    transform: scale(1);
}

/* Logo图片样式 */
.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 5px rgba(211, 47, 47, 0.3));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.logo:hover .logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(211, 47, 47, 0.5));
}

/* 备用图标样式 */
.logo i {
    font-size: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.logo span {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 5px rgba(211, 47, 47, 0.3)); }
    100% { filter: drop-shadow(0 0 15px rgba(211, 47, 47, 0.6)); }
}

/* 导航栏滚动时的样式变化 */
.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(211, 47, 47, 0.1);
}

.main-header.scrolled .nav-container {
    height: 70px;
}

.main-header.scrolled .logo {
    transform: scale(0.9);
}

.main-header.scrolled .logo-image {
    width: 35px;
    height: 35px;
}

/* 导航链接简化加载动画 */
.nav-menu li {
    animation: fadeInGently 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(-10px);
}

.nav-menu li:nth-child(1) { animation-delay: 0.1s; }
.nav-menu li:nth-child(2) { animation-delay: 0.15s; }
.nav-menu li:nth-child(3) { animation-delay: 0.2s; }
.nav-menu li:nth-child(4) { animation-delay: 0.25s; }
.nav-menu li:nth-child(5) { animation-delay: 0.3s; }

@keyframes fadeInGently {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载完成后移除动画 */
.nav-menu.loaded li {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 防止初始闪动 */
.nav-menu li {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 确保过渡的平滑性 */
.nav-link {
    will-change: transform, background, color, box-shadow;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xs);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.5px;
    display: block;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 50px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover:not(.active) {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.3);
}

.nav-link:hover:not(.active)::before {
    left: 0;
}

.nav-link:hover:not(.active)::after {
    width: 80%;
}

.nav-link.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    transform: translateY(-1px);
    animation: gentleActivate 0.3s ease-out forwards;
}

.nav-link.active::before {
    left: 0;
}

.nav-link.active::after {
    width: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* 活跃状态的悬浮效果 */
.nav-link.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.5);
}

@keyframes gentleActivate {
    0% {
        transform: translateY(-1px) scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-1px) scale(1);
        opacity: 1;
    }
}



/* 移动端菜单按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: var(--spacing-xs);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hamburger:hover {
    background: rgba(211, 47, 47, 0.1);
    transform: scale(1.05);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* =================== 首页英雄区块样式 =================== */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f4e6 0%, #f1e7d1 50%, #ede0c8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 广东非遗元素图容器 */
.heritage-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 2s ease-in-out;
    z-index: 1;
    /* 添加广东非遗标志性图片背景 */
    background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), 
                      url('img/广东标志性非遗.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.heritage-image-container.blurred {
    opacity: 0.2;
    filter: blur(10px);
    transform: scale(1.05);
}

.heritage-image {
    position: relative;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle at center, 
        rgba(211, 47, 47, 0.15) 0%,
        rgba(139, 69, 19, 0.1) 30%,
        rgba(255, 215, 0, 0.1) 60%,
        rgba(255, 255, 255, 0.05) 80%,
        transparent 100%);
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* 广东非遗元素 */
.heritage-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    animation: elementFloat 4s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    min-width: 120px;
    z-index: 10;
}

.element:hover {
    transform: scale(1.15) translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 1);
}

.element i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.element span {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 元素位置分布 */
.element-1 { top: 15%; left: 20%; animation-delay: 0s; }
.element-2 { top: 25%; right: 15%; animation-delay: 0.5s; }
.element-3 { top: 45%; left: 10%; animation-delay: 1s; }
.element-4 { top: 50%; right: 20%; animation-delay: 1.5s; }
.element-5 { bottom: 30%; left: 25%; animation-delay: 2s; }
.element-6 { bottom: 20%; right: 25%; animation-delay: 2.5s; }

@keyframes elementFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }
    25% { 
        transform: translateY(-12px) rotate(1deg) scale(1.02); 
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    }
    50% { 
        transform: translateY(-8px) rotate(-0.5deg) scale(1.01); 
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
    }
    75% { 
        transform: translateY(-18px) rotate(1.5deg) scale(1.03); 
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    }
}

/* 交互内容区域 */
.interactive-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 2s ease-in-out;
    z-index: 2;
}

.interactive-content.active {
    opacity: 1;
    transform: scale(1);
}

/* 水平布局容器 */
.triangle-layout {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.1);
}

/* 功能圆形设计 */
.function-circle {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    transform: scale(0.8);
    animation: simple-appear 1s ease-out forwards;
    padding: 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18), inset 0 2px 15px rgba(255, 255, 255, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.6);
    margin: 0;
    flex-shrink: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .function-circle-link {
        margin: 10px;
    }
}

/* 圆形链接样式 */
.function-circle-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin: 15px;
    position: relative;
    border-radius: 50%;
    overflow: visible;
}

.function-circle-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    border-radius: 50%;
    z-index: -1;
    transition: all 0.5s ease;
}

.function-circle-link:hover::after {
    width: 320px;
    height: 320px;
    opacity: 0.5;
}

.function-circle-link:hover {
    text-decoration: none;
    color: inherit;
}

.function-circle-link:active .function-circle {
    transform: scale(0.95) translateY(5px);
    transition: transform 0.2s ease;
}

/* 修改原有样式以适应链接包装 */
.function-circle {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    transform: scale(0.8);
    animation: simple-appear 1s ease-out forwards;
    padding: 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18), inset 0 2px 15px rgba(255, 255, 255, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.6);
    margin: 0;
    flex-shrink: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .function-circle-link {
        margin: 10px;
    }
    
    .function-circle-link:hover::after {
        width: 200px;
        height: 200px;
    }
}

/* 圆形样式 */
.circle-about {
    animation-delay: 2s;
    border-color: #4F46E5;
    order: 1;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(240, 240, 255, 0.85));
}

.circle-about::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 70% 70%, rgba(79, 70, 229, 0.15), transparent 60%);
    z-index: -1;
    animation: rotate-gradient 15s linear infinite;
}

.circle-explore {
    animation-delay: 2.3s;
    border-color: #059669;
    order: 2;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(240, 255, 245, 0.85));
}

.circle-explore::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 70% 70%, rgba(5, 150, 105, 0.15), transparent 60%);
    z-index: -1;
    animation: rotate-gradient 15s linear infinite reverse;
}

.circle-heritage {
    animation-delay: 2.6s;
    border-color: #DC2626;
    order: 3;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 240, 240, 0.85));
}

.circle-heritage::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 70% 70%, rgba(220, 38, 38, 0.15), transparent 60%);
    z-index: -1;
    animation: rotate-gradient 15s linear infinite;
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 圆形内部图标 */
.circle-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15), inset 0 1px 3px rgba(255,255,255,0.5);
    animation: pulse-glow 3s ease-in-out infinite alternate;
}

.circle-about .circle-icon {
    background: linear-gradient(135deg, #4F46E5, #6366F1);
}

.circle-explore .circle-icon {
    background: linear-gradient(135deg, #059669, #10B981);
}

.circle-heritage .circle-icon {
    background: linear-gradient(135deg, #DC2626, #EF4444);
}

.circle-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 50%);
    opacity: 0;
    animation: icon-shine 5s ease-in-out infinite;
}

.circle-icon i {
    font-size: 2.8rem;
    color: white;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
    animation: float 3s ease-in-out infinite alternate;
    transform-origin: center;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 25px rgba(0,0,0,0.15), 
                   inset 0 1px 3px rgba(255,255,255,0.5);
    }
    50% {
        box-shadow: 0 15px 30px rgba(0,0,0,0.2), 
                   inset 0 2px 5px rgba(255,255,255,0.7),
                   0 0 20px rgba(255,255,255,0.5);
    }
}

@keyframes icon-shine {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }
    25% {
        opacity: 0.5;
    }
    50% {
        opacity: 0;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* 圆形内部内容 */
.circle-content {
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    margin: 0 auto;
}

.circle-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    padding: 0;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    font-family: 'Microsoft YaHei', sans-serif;
}

.circle-content h3::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: currentColor;
    opacity: 0.6;
    border-radius: 3px;
}

.circle-about .circle-content h3 { 
    color: #4F46E5; 
    background: linear-gradient(135deg, #4F46E5, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(79, 70, 229, 0.2));
}

.circle-explore .circle-content h3 { 
    color: #059669; 
    background: linear-gradient(135deg, #059669, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(5, 150, 105, 0.2));
}

.circle-heritage .circle-content h3 { 
    color: #DC2626; 
    background: linear-gradient(135deg, #DC2626, #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(220, 38, 38, 0.2));
}

.circle-content p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
    width: 90%;
    max-height: 70px;
    font-weight: 400;
    letter-spacing: 0.2px;
    opacity: 0.85;
    transition: all 0.3s ease;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 5px 0;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
}

.function-circle-link:hover .circle-content p {
    opacity: 1;
    background: rgba(255,255,255,0.7);
}

/* 悬浮效果 */
.function-circle-link:hover .function-circle {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.25);
}

.function-circle::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 70%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.function-circle-link:hover .function-circle::after {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
}





/* =================== 通用按钮样式 =================== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: var(--font-size-base);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* =================== 特色展示区块样式 =================== */
.features-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
}

.feature-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* =================== 资讯区块样式 =================== */
.news-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #ddd, #ccc);
    position: relative;
}

.news-content {
    padding: var(--spacing-md);
}

.news-content h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.news-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.news-date {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* =================== 页脚样式 =================== */
.main-footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
}

.footer-section p,
.footer-section ul {
    color: #cccccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section ul a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid #444;
    color: #999;
}

/* =================== 响应式设计 =================== */
@media (max-width: 768px) {
    /* 移动端logo样式 */
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    /* 移动端导航 */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: var(--spacing-sm);
        right: var(--spacing-sm);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        transform: translateY(-100vh);
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        gap: var(--spacing-sm);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        max-width: 300px;
        margin: 0 auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    /* 移动端导航链接样式调整 */
    .nav-link {
        width: 100%;
        text-align: center;
        padding: var(--spacing-md);
        margin: var(--spacing-xs) 0;
        font-size: 16px;
        border-radius: 15px;
        transform: none !important;
    }
    
    .nav-link:hover {
        transform: none !important;
    }
    
    .nav-link.active {
        transform: none !important;
    }
    
    .nav-link.active:hover {
        transform: none !important;
    }
    
    /* 首页移动端适配 */
    .heritage-image-container {
        background-size: cover;
        background-position: center center;
    }
    
    .heritage-image {
        width: 95vw;
        height: 70vh;
        max-width: 600px;
    }
    
    .element {
        padding: var(--spacing-sm);
        transform: scale(0.8);
    }
    
    .element i {
        font-size: 2rem;
    }
    
    .element span {
        font-size: 0.9rem;
    }
    
    /* 移动端水平布局适配 */
    .triangle-layout {
        width: 100%;
        padding: 30px 10px;
        justify-content: center;
        background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    }
    
    .function-circle {
        width: 180px;
        height: 180px;
        padding: 15px;
        margin: 10px;
    }
    
    .circle-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 6px;
    }
    
    .circle-icon i {
        font-size: 1.8rem;
    }
    
    .circle-content h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .circle-content h3::before {
        top: -7px;
        width: 20px;
        height: 2px;
    }
    
    .circle-content p {
        font-size: 0.7rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        width: 90%;
        max-height: 40px;
        padding: 3px 0;
    }
    
    /* 网格布局适配 */
    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    /* 页脚适配 */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .feature-card,
    .news-card {
        margin: 0 var(--spacing-xs);
    }
    
    /* 认识非遗页面移动端特殊优化 */
    .categories-wrapper {
        gap: 20px;
        padding: 0 5px;
    }
    
    .category-section {
        padding: 0;
    }
    
    .category-title {
        font-size: 16px;
        padding: 12px 15px;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .heritage-grid {
        gap: 12px;
    }
    
    .heritage-card {
        min-height: 250px;
        border-radius: 12px;
    }
    
    .card-image {
        height: 140px;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .card-content h4 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .card-content p {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
    }
    
    .card-tags {
        gap: 4px;
    }
    
    .tag {
        font-size: 10px;
        padding: 3px 6px;
        border-radius: 8px;
    }
    
    /* 搜索区域移动端优化 */
    .search-section {
        padding: 20px 0;
    }
    
    .search-box {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .search-input {
        font-size: 13px;
    }
    
    .search-btn {
        width: 32px;
        height: 32px;
    }
}

/* =================== 加载动画 =================== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =================== 滚动优化 =================== */
html {
    scroll-behavior: smooth;
}

.scroll-padding {
    scroll-padding-top: 70px;
}

/* =================== 页面特有样式 =================== */

/* 页面头部样式 */
.page-header {
    background: linear-gradient(135deg, var(--background-light) 0%, #f0f0f0 100%);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.page-title {
    font-size: var(--font-size-xxl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 内容区块样式 */
.content-section {
    padding: var(--spacing-xxl) 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.content-text h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.highlight-box {
    background-color: var(--background-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-top: var(--spacing-md);
}

.highlight-box h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.highlight-box ul {
    list-style: none;
    padding: 0;
}

.highlight-box li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.content-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #e0e0e0, #f5f5f5);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.image-placeholder i {
    font-size: 64px;
    margin-bottom: var(--spacing-sm);
}

/* 分类区块样式 */
.categories-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.category-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    margin-bottom: var(--spacing-sm);
}

.category-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.category-examples {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* 意义区块样式 */
.significance-section {
    padding: var(--spacing-xxl) 0;
}

.significance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.significance-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.significance-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #ffa726);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    margin: 0 auto var(--spacing-sm);
}

.significance-item h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

/* 行动区块样式 */
.action-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.action-content h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.action-content p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.action-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

/* 筛选区块样式 */
.filter-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    border: 2px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white);
}

/* 项目展示样式 */
.projects-section {
    padding: var(--spacing-xxl) 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.project-image {
    position: relative;
    height: 200px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 48px;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: var(--spacing-md);
}

.project-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.project-info h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.project-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* 体验区块样式 */
.experience-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-light);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.experience-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.experience-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    margin: 0 auto var(--spacing-sm);
}

.experience-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin: var(--spacing-md) 0;
    text-align: left;
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

/* 大师风采样式 */
.masters-section {
    padding: var(--spacing-xxl) 0;
}

.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.master-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition-normal);
}

.master-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.master-avatar {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #ddd, #ccc);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 32px;
}

.master-title {
    color: var(--primary-color);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.master-experience {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* 个人中心样式 */
.profile-header {
    background: linear-gradient(135deg, var(--background-light) 0%, #f0f0f0 100%);
    padding: var(--spacing-xxl) 0;
}

.profile-info {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--spacing-lg);
    align-items: center;
}

.profile-avatar {
    position: relative;
}

.profile-avatar .avatar-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.avatar-edit:hover {
    background-color: var(--secondary-color);
}

.profile-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.profile-title {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.profile-stats {
    display: flex;
    gap: var(--spacing-lg);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

/* 选项卡样式 */
.profile-tabs {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
}

.tabs-nav {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
}

.tab-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    background: none;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.profile-content {
    padding: var(--spacing-xxl) 0;
}

/* 选项卡内容样式 */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.content-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

/* 课程列表样式 */
.courses-list {
    margin-bottom: var(--spacing-xl);
}

.course-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    margin-bottom: var(--spacing-md);
}

.course-thumb {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.course-details {
    flex: 1;
}

.course-details h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.course-instructor {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition-normal);
}

.progress-text {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* 完成课程样式 */
.completed-courses {
    margin-top: var(--spacing-md);
}

.completed-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.completed-item i {
    width: 40px;
    height: 40px;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.completion-date {
    margin-left: auto;
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* 证书网格样式 */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.certificate-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.certificate-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #ffa726);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    margin: 0 auto var(--spacing-sm);
}

.certificate-date {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    margin: var(--spacing-sm) 0;
}

/* 收藏列表样式 */
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.favorite-thumb {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.favorite-info {
    flex: 1;
}

.favorite-info h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.favorite-date {
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 活动记录样式 */
.activities-history {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.activity-record {
    display: flex;
    gap: var(--spacing-md);
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.activity-record .activity-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-sm);
    border-radius: 8px;
    min-width: 60px;
}

.activity-record .month {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.activity-record .day {
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.activity-info {
    flex: 1;
}

.activity-info h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.activity-status {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-top: var(--spacing-xs);
}

/* 按钮尺寸变体 */
.btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
}

/* 传习页面特有样式 */
.learning-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-light);
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.learning-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.learning-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.learning-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    margin: 0 auto var(--spacing-sm);
}

.learning-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.learning-features {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
    text-align: left;
}

.learning-features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-light);
    position: relative;
    padding-left: var(--spacing-md);
}

.learning-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 课程区块样式 */
.courses-section {
    padding: var(--spacing-xxl) 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.course-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.course-image {
    position: relative;
    height: 200px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-level {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.course-info {
    padding: var(--spacing-md);
}

.course-info h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.course-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.course-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--font-size-base);
}

.course-btn {
    width: 100%;
}

/* 学员风采样式 */
.students-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-light);
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.student-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
}

.student-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.student-avatar {
    margin-bottom: var(--spacing-md);
}

.student-avatar .avatar-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    margin: 0 auto;
}

.student-info h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    text-align: center;
}

.student-course {
    display: block;
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.student-info p {
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.student-achievement {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* 活动时间线样式 */
.activities-section {
    padding: var(--spacing-xxl) 0;
}

.activities-timeline {
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
}

.activity-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
}

.activity-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-medium);
}

.activity-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-sm);
    border-radius: 8px;
    min-width: 60px;
}

.month {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.day {
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.activity-content {
    flex: 1;
}

.activity-content h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.activity-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
}

.activity-location {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .categories-grid,
    .projects-grid,
    .experience-grid,
    .masters-grid,
    .learning-grid,
    .courses-grid,
    .students-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-info {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .course-item {
        flex-direction: column;
        text-align: center;
    }
    
    .favorite-item {
        flex-direction: column;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .activity-item {
        flex-direction: column;
        text-align: center;
    }
    
    .course-meta {
        flex-direction: column;
        gap: var(--spacing-xs);
        align-items: flex-start;
    }
    
    .student-achievement {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* =================== 页面主题色配置 =================== */

/* 认识非遗页面 - 温暖传统色调 */
.theme-about {
    --primary-color: #d84315;     /* 深橙红色 - 传统文化的温暖 */
    --secondary-color: #bf360c;   /* 更深的橙红色 */
    --accent-color: #ff9800;      /* 温暖橙色 */
    --background-light: #fff3e0;  /* 温暖背景色 */
    --shadow-primary: rgba(216, 67, 21, 0.3);
}

.theme-about .main-header::before {
    background: linear-gradient(135deg, 
        rgba(216, 67, 21, 0.03) 0%, 
        rgba(191, 54, 12, 0.02) 50%, 
        rgba(255, 152, 0, 0.02) 100%);
}

.theme-about .main-header.scrolled {
    border-bottom: 1px solid rgba(216, 67, 21, 0.1);
}

/* 走进非遗页面 - 冷静科技色调 */
.theme-explore {
    --primary-color: #1565c0;     /* 深蓝色 - 科技的冷静 */
    --secondary-color: #0d47a1;   /* 更深的蓝色 */
    --accent-color: #42a5f5;      /* 亮蓝色 */
    --background-light: #e3f2fd;  /* 淡蓝背景色 */
    --shadow-primary: rgba(21, 101, 192, 0.3);
}

.theme-explore .main-header::before {
    background: linear-gradient(135deg, 
        rgba(21, 101, 192, 0.03) 0%, 
        rgba(13, 71, 161, 0.02) 50%, 
        rgba(66, 165, 245, 0.02) 100%);
}

.theme-explore .main-header.scrolled {
    border-bottom: 1px solid rgba(21, 101, 192, 0.1);
}

/* 传习非遗页面 - 理性教育色调 */
.theme-heritage {
    --primary-color: #2e7d32;     /* 深绿色 - 教育的理性 */
    --secondary-color: #1b5e20;   /* 更深的绿色 */
    --accent-color: #66bb6a;      /* 清新绿色 */
    --background-light: #e8f5e8;  /* 淡绿背景色 */
    --shadow-primary: rgba(46, 125, 50, 0.3);
}

.theme-heritage .main-header::before {
    background: linear-gradient(135deg, 
        rgba(46, 125, 50, 0.03) 0%, 
        rgba(27, 94, 32, 0.02) 50%, 
        rgba(102, 187, 106, 0.02) 100%);
}

.theme-heritage .main-header.scrolled {
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
}

/* =================== 主题色按钮样式 =================== */

/* 暖色调按钮样式 */
.theme-about .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.theme-about .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 8px 25px var(--shadow-primary);
}

.theme-about .btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.theme-about .btn-secondary:hover {
    background-color: var(--primary-color);
}

/* 冷色调按钮样式 - 走进非遗 */
.theme-explore .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.theme-explore .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 8px 25px var(--shadow-primary);
}

.theme-explore .btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.theme-explore .btn-secondary:hover {
    background-color: var(--primary-color);
}

/* 理性色调按钮样式 - 传习非遗 */
.theme-heritage .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.theme-heritage .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 8px 25px var(--shadow-primary);
}

.theme-heritage .btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.theme-heritage .btn-secondary:hover {
    background-color: var(--primary-color);
}

/* =================== 主题色卡片样式 =================== */

/* 特色卡片图标颜色 */
.theme-about .feature-icon,
.theme-about .category-icon,
.theme-about .experience-icon,
.theme-about .learning-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.theme-explore .feature-icon,
.theme-explore .category-icon,
.theme-explore .experience-icon,
.theme-explore .learning-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.theme-heritage .feature-icon,
.theme-heritage .category-icon,
.theme-heritage .experience-icon,
.theme-heritage .learning-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

/* 链接颜色优化 */
.theme-about a:not(.btn):not(.nav-link) {
    color: var(--primary-color);
}

.theme-explore a:not(.btn):not(.nav-link) {
    color: var(--primary-color);
}

.theme-heritage a:not(.btn):not(.nav-link) {
    color: var(--primary-color);
}

/* 标题强调色 */
.theme-about .section-title::after {
    background: var(--accent-color);
}

.theme-explore .section-title::after {
    background: var(--accent-color);
}

.theme-heritage .section-title::after {
    background: var(--accent-color);
}

/**
 * 搜索区块样式
 */
.search-section {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-color)10, transparent 50%),
                linear-gradient(45deg, var(--secondary-color)05, transparent 50%);
    position: relative;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.search-box:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 25px 50px rgba(var(--primary-color-rgb), 0.2);
}

.search-icon {
    color: var(--primary-color);
    font-size: 20px;
    margin-right: 15px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-color);
    background: transparent;
    padding: 5px 0;
}

.search-input::placeholder {
    color: #999;
    font-style: italic;
}

.search-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.search-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.search-suggestions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggestion-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--primary-color);
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/**
 * 非遗分类展示样式
 */
.heritage-categories {
    padding: 50px 0;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    width: 100%;
    overflow: hidden;
}

.heritage-categories .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.heritage-categories .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.categories-wrapper {
    display: flex;
    gap: 15px;
    width: 100%;
}

.category-section {
    flex: 1;
    max-width: calc(25% - 11.25px);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    display: flex;
    flex-direction: column;
}

.category-section:nth-child(2) { animation-delay: 0.1s; }
.category-section:nth-child(3) { animation-delay: 0.2s; }
.category-section:nth-child(4) { animation-delay: 0.3s; }
.category-section:nth-child(5) { animation-delay: 0.4s; }

.category-title {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 800;
    margin-bottom: 15px;
    padding: 12px 15px;
    line-height: 1.2;
    position: relative;
    display: block;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
}

.category-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-title:hover::before {
    opacity: 1;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    border-radius: 2px;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.category-title:hover::after {
    width: 80%;
}

/* 物质科学样式 */
.physics-science {
    background: linear-gradient(135deg, 
        rgba(255, 87, 34, 0.1) 0%, 
        rgba(255, 152, 0, 0.1) 50%, 
        rgba(255, 193, 7, 0.1) 100%);
    color: #FF5722;
    text-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
    box-shadow: 
        0 8px 32px rgba(255, 87, 34, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: pulseOrange 3s ease-in-out infinite;
}

.physics-science::after {
    background: linear-gradient(90deg, #FF5722, #FF9800, #FFC107);
}

.physics-science:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(255, 87, 34, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 生命科学样式 */
.life-science {
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.1) 0%, 
        rgba(139, 195, 74, 0.1) 50%, 
        rgba(205, 220, 57, 0.1) 100%);
    color: #4CAF50;
    text-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    box-shadow: 
        0 8px 32px rgba(76, 175, 80, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: pulseGreen 3s ease-in-out infinite 0.5s;
}

.life-science::after {
    background: linear-gradient(90deg, #4CAF50, #8BC34A, #CDDC39);
}

.life-science:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 地球与宇宙科学样式 */
.earth-science {
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.1) 0%, 
        rgba(103, 58, 183, 0.1) 50%, 
        rgba(156, 39, 176, 0.1) 100%);
    color: #2196F3;
    text-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    box-shadow: 
        0 8px 32px rgba(33, 150, 243, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: pulseBlue 3s ease-in-out infinite 1s;
}

.earth-science::after {
    background: linear-gradient(90deg, #2196F3, #673AB7, #9C27B0);
}

.earth-science:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(33, 150, 243, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 工程与技术样式 */
.engineering-tech {
    background: linear-gradient(135deg, 
        rgba(96, 125, 139, 0.1) 0%, 
        rgba(120, 144, 156, 0.1) 50%, 
        rgba(144, 164, 174, 0.1) 100%);
    color: #607D8B;
    text-shadow: 0 2px 8px rgba(96, 125, 139, 0.3);
    box-shadow: 
        0 8px 32px rgba(96, 125, 139, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: pulseGray 3s ease-in-out infinite 1.5s;
}

.engineering-tech::after {
    background: linear-gradient(90deg, #607D8B, #78909C, #90A4AE);
}

.engineering-tech:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(96, 125, 139, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.heritage-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* 移动端heritage-grid优化 */
@media (max-width: 768px) {
    .heritage-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
        padding: 0;
        margin: 0;
    }
}

.heritage-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    width: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.heritage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.heritage-card:hover::before {
    transform: scaleX(1);
}

.heritage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-color)10, var(--accent-color)10);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.heritage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.heritage-card:hover .heritage-img {
    transform: scale(1.05);
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.heritage-card:hover .card-image::before {
    opacity: 1;
}

.image-placeholder {
    text-align: center;
    color: var(--primary-color);
    z-index: 1;
    position: relative;
}

.image-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.card-content {
    padding: 18px;
}

.card-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/**
 * 知识普及区块样式
 */
.knowledge-section {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--primary-color)05, transparent);
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.knowledge-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.knowledge-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

.knowledge-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.knowledge-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.learn-more-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.3);
}

/**
 * 搜索结果样式
 */
.search-results {
    padding: 40px 0;
    background: #f8f9fa;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.no-results p {
    font-size: 18px;
    color: #999;
}

/**
 * 响应式设计
 */
@media (max-width: 1024px) and (min-width: 769px) {
    .categories-wrapper {
        gap: 10px;
    }
    
    .category-title {
        font-size: 18px;
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    .heritage-card {
        min-height: 240px;
    }
    
    .card-image {
        height: 140px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-content h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .card-content p {
        font-size: 13px;
        margin-bottom: 12px;
    }
}

@media (max-width: 768px) {
    .search-box {
        padding: 12px 20px;
    }
    
    .search-input {
        font-size: 14px;
    }
    
    .search-btn {
        width: 35px;
        height: 35px;
    }
    
    .categories-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 0;
    }
    
    .category-section {
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }
    
    .category-title {
        font-size: 18px;
        padding: 15px 20px;
        margin-bottom: 20px;
        white-space: normal;
        text-align: center;
    }
    
    .heritage-grid {
        gap: 15px;
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .heritage-card {
        min-height: 280px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .card-image {
        height: 160px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-content h4 {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .card-content p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .card-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }
    
    .tag {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .knowledge-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/**
 * 动画定义
 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 分类标题脉冲动画 */
@keyframes pulseOrange {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(255, 87, 34, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(255, 87, 34, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes pulseGreen {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(76, 175, 80, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(76, 175, 80, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes pulseBlue {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(33, 150, 243, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(33, 150, 243, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes pulseGray {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(96, 125, 139, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(96, 125, 139, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* =================== AI对话按钮和弹窗样式 =================== */

/**
 * 悬浮AI对话按钮
 * 可拖动的圆形按钮，固定在页面右下角
 */
.ai-chat-button {
    position: fixed;
    /* 初始位置被JavaScript覆盖 */
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    border: none;
    cursor: move;
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    /* 移除默认的transform过渡，避免与JavaScript冲突 */
}

.ai-chat-button:hover:not(.dragging) {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(211, 47, 47, 0.4);
}

.ai-chat-button:active:not(.dragging) {
    transform: scale(0.95);
}

.ai-chat-button.dragging {
    cursor: grabbing;
    box-shadow: 0 8px 40px rgba(211, 47, 47, 0.5);
    z-index: 10001;
    /* transform由JavaScript完全控制 */
}

.ai-chat-button i {
    font-size: 24px;
    color: white;
    transition: transform 0.3s ease;
}

.ai-chat-button:hover i {
    transform: scale(1.1);
}

/**
 * AI对话弹窗容器
 * 全屏遮罩层，用于显示对话界面
 */
.ai-chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-chat-modal.active {
    display: flex;
    opacity: 1;
}

/**
 * AI对话窗口主体
 * 仿ChatGPT和DeepSeek的设计风格
 */
.ai-chat-window {
    width: 90%;
    max-width: 800px;
    height: 80%;
    max-height: 600px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-chat-modal.active .ai-chat-window {
    transform: scale(1) translateY(0);
}

/**
 * 对话窗口头部
 * 包含标题和关闭按钮
 */
.ai-chat-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-title i {
    font-size: 20px;
}

.ai-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/**
 * 对话消息区域
 * 可滚动的消息列表容器
 */
.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/**
 * 单条消息样式
 * 区分用户消息和AI回复
 */
.chat-message {
    display: flex;
    gap: 12px;
    max-width: 80%;
    animation: messageSlideIn 0.3s ease-out;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message.ai {
    align-self: flex-start;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/**
 * 消息头像
 * 用户和AI的头像样式
 */
.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.message-avatar.user {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.message-avatar.ai {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/**
 * 消息内容气泡
 * 不同角色的消息气泡样式
 */
.message-content {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.ai .message-content {
    background: white;
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/**
 * 输入区域
 * 位于对话窗口底部的输入框和发送按钮
 */
.ai-chat-input-area {
    padding: 20px 24px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.ai-chat-input {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 22px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.ai-chat-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.ai-chat-input::placeholder {
    color: #999;
}

.ai-chat-send {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ai-chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.3);
}

.ai-chat-send:active {
    transform: scale(0.95);
}

.ai-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/**
 * 欢迎消息样式
 * 对话开始时的引导消息
 */
.welcome-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.welcome-message i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: block;
}

.welcome-message h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.welcome-message p {
    font-size: 14px;
    line-height: 1.6;
}

/**
 * 正在输入指示器
 * AI回复时的加载动画
 */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    max-width: 80px;
    animation: messageSlideIn 0.3s ease-out;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingDot {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/**
 * 移动端适配
 * 针对小屏幕设备的响应式设计
 */
@media (max-width: 768px) {
    .ai-chat-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
    
    .ai-chat-button i {
        font-size: 22px;
    }
    
    .ai-chat-window {
        width: 95%;
        height: 90%;
        margin: 0 auto;
    }
    
    .ai-chat-header {
        padding: 16px 20px;
    }
    
    .ai-chat-title {
        font-size: 16px;
    }
    
    .ai-chat-messages {
        padding: 16px;
    }
    
    .chat-message {
        max-width: 90%;
    }
    
    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .message-content {
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .ai-chat-input-area {
        padding: 16px 20px;
    }
    
    .ai-chat-input {
        min-height: 40px;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .ai-chat-send {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ai-chat-window {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .welcome-message {
        padding: 30px 16px;
    }
    
    .welcome-message i {
        font-size: 40px;
    }
    
    .welcome-message h3 {
        font-size: 18px;
    }
}

/* 简化的出现动画 */
@keyframes simple-appear {
    0% { 
        opacity: 0; 
        transform: scale(0.7) translateY(30px); 
        filter: blur(5px);
    }
    70% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
        filter: blur(0);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
        filter: blur(0);
    }
}

/* =================== 显示更多按钮样式 =================== */
.show-more-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    position: relative;
}

.show-more-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.3) 20px,
        rgba(255,255,255,0.3) 40px
    );
    pointer-events: none;
}

.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.show-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.show-more-btn:hover::before {
    left: 100%;
}

.show-more-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.show-more-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.show-more-btn.expanded .btn-icon {
    transform: rotate(180deg);
}

.show-more-btn.expanded .btn-text {
    display: none;
}

.show-more-btn.expanded::after {
    content: '收起内容';
}

/* =================== 更多内容模块样式 =================== */
.more-content-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, #ffeef5 0%, #f0f8ff 50%, #fff5f5 100%);
    position: relative;
    overflow: hidden;
    display: none;
    animation: slideDownFadeIn 0.6s ease-out forwards;
}

.more-content-section.active {
    display: block;
}

@keyframes slideDownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.more-content-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: backgroundMove 20s linear infinite;
    pointer-events: none;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.section-title-alt {
    text-align: center;
    font-size: var(--font-size-xxl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xxl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.section-title-alt i {
    color: var(--primary-color);
    font-size: 1.2em;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* =================== 列表式布局样式 =================== */
.heritage-list-layout {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* 滚动容器包装器 */
.horizontal-scroll-container {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

/* 滚动提示样式 */
.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 25px;
    color: var(--text-light);
    font-size: var(--font-size-sm);
    font-weight: 500;
    animation: hintPulse 3s ease-in-out infinite;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.scroll-hint i {
    color: var(--primary-color);
    font-size: 14px;
    animation: pointingAnimation 2s ease-in-out infinite alternate;
}

@keyframes hintPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    }
}

@keyframes pointingAnimation {
    0% { transform: translateX(0); }
    100% { transform: translateX(5px); }
}



.heritage-list-category {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: var(--spacing-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: categorySlideIn 0.6s ease-out forwards;
}

.heritage-list-category:nth-child(1) { animation-delay: 0.1s; }
.heritage-list-category:nth-child(2) { animation-delay: 0.2s; }
.heritage-list-category:nth-child(3) { animation-delay: 0.3s; }
.heritage-list-category:nth-child(4) { animation-delay: 0.4s; }

@keyframes categorySlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.heritage-list-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.heritage-list-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* =================== 分类头部样式 =================== */
.category-header-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.category-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(8px);
    opacity: 0.3;
    transform: scale(1.2);
}

.category-icon-wrapper i {
    position: relative;
    z-index: 2;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.physics-color {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.life-color {
    background: linear-gradient(135deg, #4ecdc4, #44bd87);
}

.earth-color {
    background: linear-gradient(135deg, #45b7d1, #2d3748);
}

.tech-color {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.category-info {
    flex: 1;
}

.category-info h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-info p {
    color: var(--text-light);
    font-size: var(--font-size-base);
    line-height: 1.5;
}

.category-count {
    background: linear-gradient(135deg, var(--accent-color), #ffb347);
    color: var(--text-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-size-sm);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* =================== 列表项样式 =================== */
.heritage-list-items {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-md);
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--spacing-sm) 0;
    scroll-behavior: smooth;
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: rgba(211, 47, 47, 0.3) transparent;
}

.heritage-list-items::-webkit-scrollbar {
    height: 6px;
}

.heritage-list-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.heritage-list-items::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    transition: background 0.3s ease;
}

.heritage-list-items::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.heritage-list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    /* 横向卡片设置 */
    min-width: 280px;
    max-width: 320px;
    width: 300px;
    flex-shrink: 0;
    text-align: center;
}

.heritage-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.heritage-list-item:hover::before {
    left: 100%;
}

.heritage-list-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.item-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    margin-bottom: var(--spacing-sm);
}

.item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-overlay i {
    color: white;
    font-size: 20px;
}

.heritage-list-item:hover .item-thumbnail img {
    transform: scale(1.1);
}

.heritage-list-item:hover .item-overlay {
    opacity: 1;
}

.item-details {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.item-details h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.item-details p {
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.meta-tag {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    padding: 4px var(--spacing-xs);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(21, 101, 192, 0.1);
}

.meta-date {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
}



/* =================== 响应式设计 =================== */
@media (max-width: 768px) {
    .show-more-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-base);
    }

    .section-title-alt {
        font-size: var(--font-size-xl);
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .heritage-list-layout {
        padding: var(--spacing-sm);
        gap: var(--spacing-md);
    }

    .heritage-list-category {
        padding: var(--spacing-sm);
    }

    .category-header-list {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
    }

    .category-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .heritage-list-item {
        min-width: 250px;
        width: 280px;
        max-width: 300px;
        padding: var(--spacing-sm);
    }

    .item-thumbnail {
        width: 100px;
        height: 100px;
    }

    .item-meta {
        justify-content: center;
    }

    .scroll-hint {
        font-size: 12px;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .scroll-hint i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .more-content-section {
        padding: var(--spacing-lg) 0;
    }

    .heritage-list-layout {
        gap: var(--spacing-sm);
        padding: var(--spacing-xs);
    }

    .heritage-list-category {
        padding: var(--spacing-xs);
    }

    .category-header-list {
        padding: var(--spacing-xs);
    }

    .heritage-list-item {
        min-width: 220px;
        width: 240px;
        max-width: 260px;
        padding: var(--spacing-xs);
    }

    .item-thumbnail {
        width: 80px;
        height: 80px;
    }

    .item-details h4 {
        font-size: 14px;
    }

    .item-details p {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .category-info h3 {
        font-size: var(--font-size-lg);
    }

    .scroll-hint {
        display: none; /* 在小屏幕上隐藏滚动提示 */
    }
}

/* =================== 莫兰迪色系主题样式 =================== */

/* 主体布局样式 */
.morandi-theme {
    background: var(--morandi-gray-light);
    color: var(--morandi-text-primary);
}

.morandi-header {
    background: linear-gradient(135deg, var(--morandi-blue) 0%, var(--morandi-purple) 100%);
    color: var(--morandi-white);
    padding: 60px 0;
}

.morandi-avatar {
    background: rgba(255, 255, 255, 0.2);
    color: var(--morandi-white);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.morandi-edit-btn {
    background: var(--morandi-green);
    border: none;
    color: var(--morandi-white);
}

.morandi-text-primary {
    color: var(--morandi-white);
    font-weight: 600;
    margin-bottom: 8px;
}

.morandi-text-secondary {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.morandi-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.morandi-stat-learning {
    background: var(--morandi-blue);
    color: var(--morandi-white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.morandi-stat-time {
    background: var(--morandi-green);
    color: var(--morandi-white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.morandi-stat-creative {
    background: var(--morandi-pink);
    color: var(--morandi-white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.morandi-stat-collection {
    background: var(--morandi-purple);
    color: var(--morandi-white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

/* 按钮样式 */
.morandi-btn-primary {
    background: var(--morandi-blue);
    color: var(--morandi-white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.morandi-btn-primary:hover {
    background: #7A8BB8;
    transform: translateY(-1px);
}

.morandi-btn-secondary {
    background: transparent;
    color: var(--morandi-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.morandi-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 仪表板布局 */
.main-dashboard {
    padding: 40px 0;
    background: var(--morandi-bg);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.dashboard-section {
    background: var(--morandi-card-bg);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--morandi-shadow-lg);
    border: 1px solid var(--morandi-border);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--morandi-border);
}

.morandi-learning-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--morandi-blue), var(--morandi-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--morandi-white);
    font-size: 24px;
}

.morandi-management-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--morandi-green), var(--morandi-yellow));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--morandi-white);
    font-size: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--morandi-text-primary);
    margin-bottom: 4px;
    border: none;
    text-decoration: none;
}

.section-subtitle {
    color: var(--morandi-text-secondary);
    font-size: 14px;
    border: none;
    text-decoration: none;
}

/* 选项卡样式 */
.morandi-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--morandi-gray-light);
    padding: 6px;
    border-radius: 12px;
    border: none;
}

.section-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--morandi-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.section-tab-btn:hover {
    background: rgba(139, 157, 195, 0.1);
    color: var(--morandi-blue);
}

.section-tab-btn.active {
    background: var(--morandi-white);
    color: var(--morandi-blue);
    box-shadow: var(--morandi-shadow);
}

/* 移除横线效果 */

/* 内容区域样式 */
.section-content {
    min-height: 500px;
}

.content-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--morandi-text-primary);
    margin-bottom: 20px;
    border: none;
    text-decoration: none;
}

/* 学习概览卡片 */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.overview-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--morandi-shadow-lg);
}

.morandi-card-blue {
    background: linear-gradient(135deg, var(--morandi-blue), #9BADD1);
    color: var(--morandi-white);
}

.morandi-card-green {
    background: linear-gradient(135deg, var(--morandi-green), #B6D2C4);
    color: var(--morandi-white);
}

.morandi-card-purple {
    background: linear-gradient(135deg, var(--morandi-purple), #C6B6E2);
    color: var(--morandi-white);
}

.card-icon {
    font-size: 24px;
}

.card-info h4 {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.card-number {
    font-size: 28px;
    font-weight: 700;
    margin-right: 4px;
}

.card-label {
    font-size: 12px;
    opacity: 0.8;
}

/* 个人中心新增模块样式 =================== */

/* 收藏页面筛选功能 */
.favorites-grid {
    margin-top: var(--spacing-md);
}

.filter-tabs {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
}

.filter-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: var(--font-size-sm);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    font-weight: 500;
}

.filter-btn:hover {
    color: var(--primary-color);
    background: rgba(211, 47, 47, 0.1);
}

.filter-btn.active {
    color: var(--white);
    background: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.filter-btn.active::before {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--primary-color);
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.favorite-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.favorite-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.favorite-actions {
    display: flex;
    gap: var(--spacing-xs);
    margin-left: auto;
}

/* 创作中心样式 */
.creative-dashboard {
    margin-top: var(--spacing-md);
}

.create-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.create-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--white) 0%, var(--background-light) 100%);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
}

.create-btn:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.create-btn i {
    font-size: 2.5rem;
    transition: all var(--transition-normal);
}

.create-btn:hover i {
    transform: scale(1.1);
}

.creative-works {
    margin-top: var(--spacing-lg);
}

.work-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.work-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.work-thumb {
    width: 60px;
    height: 60px;
    background: var(--background-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.work-info {
    flex: 1;
}

.work-info h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.work-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.work-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.work-date {
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.work-actions {
    display: flex;
    gap: var(--spacing-xs);
}

/* 讨论社区样式 */
.community-section {
    margin-top: var(--spacing-md);
}

.community-tabs {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
}

.community-tab-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: var(--font-size-base);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    position: relative;
}

.community-tab-btn:hover {
    color: var(--primary-color);
    background: rgba(211, 47, 47, 0.1);
}

.community-tab-btn.active {
    color: var(--primary-color);
    background: rgba(211, 47, 47, 0.1);
}

.community-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.community-tab-content {
    display: none;
}

.community-tab-content.active {
    display: block;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.post-content {
    flex: 1;
}

.post-content h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.post-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.post-meta {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-actions {
    display: flex;
    gap: var(--spacing-xs);
    margin-left: var(--spacing-md);
}

.reply-item {
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.reply-context {
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.original-title {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    font-style: italic;
}

.reply-content p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.reply-meta {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.reply-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topic-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.topic-item {
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.topic-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.topic-item h4 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.topic-item p {
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

/* 推荐内容样式 */
.recommend-section {
    margin-top: var(--spacing-md);
}

.recommend-courses {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.recommend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.recommend-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.recommend-thumb {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.recommend-info {
    flex: 1;
}

.recommend-info h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.recommend-info p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.recommend-meta {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.rating {
    color: var(--accent-color);
    font-weight: 600;
}

.recommend-articles {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.article-item {
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.article-item h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.article-item p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

/* 账号管理样式 */
.account-settings {
    margin-top: var(--spacing-md);
}

.setting-section {
    background: var(--white);
    border-radius: 12px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.setting-section h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-size-lg);
}

.form-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group label {
    min-width: 100px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-fast);
}

.security-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(211, 47, 47, 0.1);
}

.security-info h4 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.security-info p {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.notification-setting {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-fast);
}

.notification-setting:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(211, 47, 47, 0.1);
}

/* 开关按钮样式 */
.switch-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
}

.switch-label input[type="checkbox"] {
    display: none;
}

.switch-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: var(--border-color);
    border-radius: 24px;
    margin-right: var(--spacing-md);
    transition: all var(--transition-fast);
}

.switch-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch-label input[type="checkbox"]:checked + .switch-slider {
    background: var(--primary-color);
}

.switch-label input[type="checkbox"]:checked + .switch-slider::before {
    transform: translateX(26px);
}

.switch-label input[type="checkbox"]:disabled + .switch-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 隐私保护样式 */
.privacy-settings {
    margin-top: var(--spacing-md);
}

.privacy-section {
    background: var(--white);
    border-radius: 12px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.privacy-section h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-size-lg);
}

.privacy-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-fast);
}

.privacy-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(211, 47, 47, 0.1);
}

.privacy-info h4 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.privacy-info p {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.privacy-select {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    background: var(--white);
    min-width: 120px;
}

.privacy-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.1);
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-fast);
}

.data-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(211, 47, 47, 0.1);
}

.data-info h4 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.data-info p {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.cookie-setting {
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-fast);
}

.cookie-setting:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(211, 47, 47, 0.1);
}

.setting-desc {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
    margin-left: 66px;
    line-height: 1.5;
}

/* 联系我们样式 */
.contact-section {
    margin-top: var(--spacing-md);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info h4 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
    line-height: 1.5;
}

.feedback-form {
    background: var(--white);
    border-radius: 12px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.feedback-form h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-size-lg);
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.contact-form label {
    color: var(--text-dark);
    font-weight: 500;
    font-size: var(--font-size-base);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: all var(--transition-fast);
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.contact-form textarea {
    min-height: 120px;
    line-height: 1.6;
}

.faq-section {
    background: var(--white);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.faq-section h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-size-lg);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(211, 47, 47, 0.1);
}

.faq-item h4 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-base);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item h4::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--text-light);
    transition: transform var(--transition-fast);
}

.faq-item.active h4::after {
    transform: rotate(180deg);
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: var(--font-size-sm);
}

/* 危险按钮样式 */
.btn-danger {
    background: #dc3545;
    color: var(--white);
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-1px);
}

/* 课程项目样式 */
.morandi-course-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course-list,
.current-courses {
    margin-bottom: 32px;
}

.course-details {
    flex: 1;
    margin: 0 16px;
}

.course-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--morandi-text-primary);
    margin-bottom: 8px;
}

.course-instructor {
    font-size: 14px;
    color: var(--morandi-text-secondary);
    margin-bottom: 12px;
}

.progress-text {
    font-size: 12px;
    color: var(--morandi-text-secondary);
    margin-top: 4px;
}

.morandi-course-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--morandi-white);
    border: 1px solid var(--morandi-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.morandi-course-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--morandi-shadow-lg);
    border-color: var(--morandi-blue);
}

.morandi-thumb-blue {
    width: 60px;
    height: 60px;
    background: var(--morandi-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--morandi-white);
    font-size: 20px;
}

.morandi-thumb-green {
    width: 60px;
    height: 60px;
    background: var(--morandi-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--morandi-white);
    font-size: 20px;
}

.morandi-thumb-purple {
    width: 60px;
    height: 60px;
    background: var(--morandi-purple);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--morandi-white);
    font-size: 20px;
}

.morandi-progress {
    width: 100%;
    height: 6px;
    background: var(--morandi-gray-light);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.morandi-progress .progress-fill {
    background: linear-gradient(90deg, var(--morandi-blue), var(--morandi-purple));
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.morandi-btn-continue {
    background: var(--morandi-blue);
    color: var(--morandi-white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.morandi-btn-continue:hover {
    background: #7A8BB8;
    transform: translateY(-1px);
}

/* 已完成课程网格 */
.completed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.morandi-completed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--morandi-gray-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.morandi-completed-item:hover {
    background: var(--morandi-white);
    box-shadow: var(--morandi-shadow);
}

.morandi-completed-item i {
    color: var(--morandi-green);
    font-size: 18px;
}

.completed-title {
    font-weight: 500;
    color: var(--morandi-text-primary);
}

.completion-date {
    font-size: 12px;
    color: var(--morandi-text-secondary);
    margin-left: auto;
}

/* 筛选标签样式 */
.morandi-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--morandi-gray-light);
    padding: 6px;
    border-radius: 12px;
}

.morandi-filter-tabs .filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--morandi-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.morandi-filter-tabs .filter-btn:hover {
    background: rgba(139, 157, 195, 0.1);
    color: var(--morandi-blue);
}

.morandi-filter-tabs .filter-btn.active {
    background: var(--morandi-white);
    color: var(--morandi-blue);
    box-shadow: var(--morandi-shadow);
}

/* 收藏项目样式 */
.morandi-favorites-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.morandi-favorite-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--morandi-white);
    border: 1px solid var(--morandi-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.morandi-favorite-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--morandi-shadow-lg);
    border-color: var(--morandi-blue);
}

.favorite-thumb {
    flex-shrink: 0;
}

.favorite-info {
    flex: 1;
    margin: 0 16px;
}

.favorite-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--morandi-text-primary);
    margin-bottom: 8px;
}

.favorite-info p {
    font-size: 14px;
    color: var(--morandi-text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.favorite-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.favorite-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.favorite-type {
    background: var(--morandi-blue);
    color: var(--morandi-white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.favorite-date {
    color: var(--morandi-text-secondary);
    font-size: 12px;
}

/* 按钮样式变体 */
.morandi-btn-small {
    background: var(--morandi-blue);
    color: var(--morandi-white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.morandi-btn-small:hover {
    background: #7A8BB8;
    transform: translateY(-1px);
}

.morandi-btn-outline-small {
    background: transparent;
    color: var(--morandi-text-secondary);
    border: 1px solid var(--morandi-border);
    padding: 7px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.morandi-btn-outline-small:hover {
    background: var(--morandi-gray-light);
    border-color: var(--morandi-blue);
    color: var(--morandi-blue);
}

/* 推荐内容样式 */
.morandi-recommend-courses {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.morandi-recommend-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--morandi-white);
    border: 1px solid var(--morandi-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.morandi-recommend-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--morandi-shadow-lg);
    border-color: var(--morandi-blue);
}

.recommend-info {
    flex: 1;
    margin: 0 16px;
}

.recommend-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--morandi-text-primary);
    margin-bottom: 8px;
}

.recommend-info p {
    font-size: 14px;
    color: var(--morandi-text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.recommend-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--morandi-text-secondary);
}

.students {
    color: var(--morandi-text-secondary);
}

.morandi-rating {
    color: var(--morandi-yellow);
    font-weight: 600;
}

.morandi-btn-recommend {
    background: var(--morandi-green);
    color: var(--morandi-white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.morandi-btn-recommend:hover {
    background: #96BCA4;
    transform: translateY(-1px);
}

/* 文章项目样式 */
.morandi-recommend-articles {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.morandi-article-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--morandi-gray-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.morandi-article-item:hover {
    background: var(--morandi-white);
    box-shadow: var(--morandi-shadow);
    transform: translateY(-1px);
}

.article-content {
    flex: 1;
    margin-left: 16px;
}

.article-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--morandi-text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-content p {
    font-size: 14px;
    color: var(--morandi-text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--morandi-text-secondary);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 推荐区域样式 */
.recommend-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.recommend-courses-section,
.recommend-articles-section {
    margin-bottom: 0;
}

.morandi-article-icon {
    width: 40px;
    height: 40px;
    background: var(--morandi-purple);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--morandi-white);
    font-size: 16px;
    flex-shrink: 0;
}

/* 创作中心样式 */
.morandi-create-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.morandi-create-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--morandi-white);
    border: 2px solid var(--morandi-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--morandi-text-primary);
    font-weight: 500;
}

.morandi-create-btn:hover {
    border-color: var(--morandi-blue);
    background: linear-gradient(135deg, var(--morandi-blue), var(--morandi-purple));
    color: var(--morandi-white);
    transform: translateY(-2px);
    box-shadow: var(--morandi-shadow-lg);
}

.morandi-create-btn i {
    font-size: 32px;
    transition: all 0.3s ease;
}

.morandi-create-btn:hover i {
    transform: scale(1.1);
}

/* 作品项目样式 */
.morandi-works-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.morandi-work-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--morandi-white);
    border: 1px solid var(--morandi-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.morandi-work-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--morandi-shadow-lg);
}

.morandi-work-thumb {
    width: 50px;
    height: 50px;
    background: var(--morandi-gray-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--morandi-blue);
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .morandi-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .morandi-create-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .morandi-course-item,
    .morandi-favorite-item,
    .morandi-recommend-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
    
    .filter-btn {
        font-size: var(--font-size-sm);
        padding: 6px var(--spacing-sm);
    }
    
    .create-actions {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .create-btn {
        padding: var(--spacing-md);
    }
    
    .create-btn i {
        font-size: 2rem;
    }
    
    .work-item,
    .favorite-item,
    .recommend-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .work-actions,
    .favorite-actions {
        margin-left: 0;
        justify-content: center;
    }
    
    .community-tabs {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
    
    .community-tab-btn {
        font-size: var(--font-size-sm);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .post-item {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .post-actions {
        margin-left: 0;
        justify-content: flex-start;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-xs);
    }
    
    .form-group label {
        min-width: auto;
    }
    
    .security-item,
    .privacy-item,
    .data-item {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .setting-desc {
        margin-left: 0;
    }
}

/* 管理中心样式 */
.morandi-community-section {
    padding: 0;
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.morandi-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--morandi-white);
    border: 1px solid var(--morandi-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.morandi-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--morandi-shadow);
}

.morandi-stat-card i {
    color: var(--morandi-blue);
    font-size: 20px;
}

.morandi-activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.morandi-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--morandi-gray-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.morandi-activity-item:hover {
    background: var(--morandi-white);
    box-shadow: var(--morandi-shadow);
}

.activity-icon {
    width: 36px;
    height: 36px;
    background: var(--morandi-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--morandi-white);
    font-size: 14px;
}

.activity-time {
    color: var(--morandi-text-secondary);
    font-size: 12px;
    margin-top: 4px;
}

/* 账号设置样式 */
.morandi-account-settings {
    padding: 0;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.morandi-setting-card {
    background: var(--morandi-white);
    border: 1px solid var(--morandi-border);
    border-radius: 12px;
    padding: 24px;
}

.morandi-setting-card h3 {
    color: var(--morandi-text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--morandi-border);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--morandi-border);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    font-weight: 500;
    color: var(--morandi-text-primary);
}

.setting-value {
    color: var(--morandi-text-secondary);
    margin-right: 12px;
}

.morandi-btn-link {
    background: none;
    border: none;
    color: var(--morandi-blue);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

.morandi-btn-link:hover {
    color: #7A8BB8;
}

.morandi-security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--morandi-gray-light);
    border-radius: 8px;
    margin-bottom: 12px;
}

.morandi-security-item:hover {
    background: var(--morandi-white);
    box-shadow: var(--morandi-shadow);
}

/* 开关样式 */
.morandi-toggle {
    position: relative;
}

.morandi-toggle input[type="checkbox"] {
    display: none;
}

.morandi-toggle label {
    display: block;
    width: 48px;
    height: 24px;
    background: var(--morandi-border);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.morandi-toggle label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--morandi-white);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: var(--morandi-shadow);
}

.morandi-toggle input[type="checkbox"]:checked + label {
    background: var(--morandi-blue);
}

.morandi-toggle input[type="checkbox"]:checked + label::after {
    transform: translateX(24px);
}

/* 隐私设置样式 */
.morandi-privacy-settings {
    padding: 0;
}

.privacy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.morandi-privacy-card {
    background: var(--morandi-white);
    border: 1px solid var(--morandi-border);
    border-radius: 12px;
    padding: 24px;
}

.morandi-privacy-card h3 {
    color: var(--morandi-text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--morandi-border);
}

.morandi-privacy-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    background: var(--morandi-gray-light);
    border-radius: 8px;
    margin-bottom: 12px;
}

.morandi-privacy-item:hover {
    background: var(--morandi-white);
    box-shadow: var(--morandi-shadow);
}

.morandi-select {
    padding: 8px 12px;
    border: 1px solid var(--morandi-border);
    border-radius: 6px;
    background: var(--morandi-white);
    color: var(--morandi-text-primary);
    font-size: 14px;
    min-width: 120px;
}

.morandi-select:focus {
    outline: none;
    border-color: var(--morandi-blue);
    box-shadow: 0 0 0 2px rgba(139, 157, 195, 0.1);
}

.morandi-data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--morandi-gray-light);
    border-radius: 8px;
    margin-bottom: 12px;
}

.morandi-data-item:hover {
    background: var(--morandi-white);
    box-shadow: var(--morandi-shadow);
}

.morandi-btn-outline {
    background: transparent;
    color: var(--morandi-blue);
    border: 1px solid var(--morandi-blue);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.morandi-btn-outline:hover {
    background: var(--morandi-blue);
    color: var(--morandi-white);
    transform: translateY(-1px);
}

.morandi-btn-danger {
    background: var(--morandi-pink);
    color: var(--morandi-white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.morandi-btn-danger:hover {
    background: #C49696;
    transform: translateY(-1px);
}

/* 联系我们样式 */
.morandi-contact-section {
    padding: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.morandi-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.morandi-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--morandi-white);
    border: 1px solid var(--morandi-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.morandi-contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--morandi-shadow-lg);
}

.morandi-contact-icon-email {
    width: 48px;
    height: 48px;
    background: var(--morandi-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--morandi-white);
    font-size: 18px;
}

.morandi-contact-icon-phone {
    width: 48px;
    height: 48px;
    background: var(--morandi-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--morandi-white);
    font-size: 18px;
}

.morandi-contact-icon-chat {
    width: 48px;
    height: 48px;
    background: var(--morandi-purple);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--morandi-white);
    font-size: 18px;
}

.morandi-feedback-form {
    background: var(--morandi-white);
    border: 1px solid var(--morandi-border);
    border-radius: 12px;
    padding: 24px;
}

.morandi-feedback-form h3 {
    color: var(--morandi-text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--morandi-border);
}

.form-row {
    margin-bottom: 16px;
}

.morandi-input,
.morandi-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--morandi-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--morandi-text-primary);
    background: var(--morandi-white);
    transition: all 0.3s ease;
}

.morandi-input:focus,
.morandi-textarea:focus {
    outline: none;
    border-color: var(--morandi-blue);
    box-shadow: 0 0 0 3px rgba(139, 157, 195, 0.1);
}

.morandi-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.morandi-btn-submit {
    background: var(--morandi-blue);
    color: var(--morandi-white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s ease;
}

.morandi-btn-submit:hover {
    background: #7A8BB8;
    transform: translateY(-1px);
}

/* 页脚样式 */
.morandi-footer {
    background: var(--morandi-gray-dark);
    color: var(--morandi-white);
}

/* AI聊天样式 */
.morandi-ai-button {
    background: linear-gradient(135deg, var(--morandi-blue), var(--morandi-purple));
}

.morandi-chat-window {
    border: 1px solid var(--morandi-border);
}

.morandi-chat-header {
    background: var(--morandi-blue);
}

.morandi-chat-input {
    border: 1px solid var(--morandi-border);
}

.morandi-chat-input:focus {
    border-color: var(--morandi-blue);
    box-shadow: 0 0 0 2px rgba(139, 157, 195, 0.1);
}

.morandi-chat-send {
    background: var(--morandi-blue);
}

.morandi-chat-send:hover {
    background: #7A8BB8;
}

/* 动画效果 */
@keyframes morandi-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: morandi-fade-in 0.6s ease-out forwards;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .community-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .tabs-nav {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .tabs-nav::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: var(--font-size-sm);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .create-actions {
        grid-template-columns: 1fr;
    }
    
    .topic-list {
        grid-template-columns: 1fr;
    }
    
    .work-stats,
    .post-meta,
    .reply-meta,
    .recommend-meta,
    .article-meta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* 修复通用样式问题 */
.learning-overview {
    margin-bottom: 32px;
}

.favorites-header {
    margin-bottom: 24px;
}

.recommend-sections .content-subtitle {
    margin-bottom: 20px;
}

/* 确保内容区域正确显示 */
.section-content .tab-content {
    min-height: auto;
}

.work-info {
    flex: 1;
    margin: 0 16px;
}

.work-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--morandi-text-primary);
    margin-bottom: 8px;
}

.work-stats {
    display: flex;
    gap: 16px;
    margin: 8px 0;
}

.work-stats span {
    font-size: 12px;
    color: var(--morandi-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.work-date {
    font-size: 12px;
    color: var(--morandi-text-secondary);
}

.work-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

/* 修复选项卡和布局问题 */
.section-title-group {
    flex: 1;
}

.section-title-group h2 {
    margin: 0;
}

.section-title-group p {
    margin: 0;
}

/* 修复按钮边距 */
.morandi-course-item .btn,
.morandi-favorite-item .btn,
.morandi-recommend-item .btn {
    margin-left: auto;
    flex-shrink: 0;
}

/* 修复网格布局 */
.learning-center,
.management-center {
    min-height: 600px;
}

/* 修复选项卡内容高度 */
.tab-content#learning,
.tab-content#favorites,
.tab-content#recommend,
.tab-content#creative,
.tab-content#community,
.tab-content#account,
.tab-content#privacy,
.tab-content#contact {
    animation: morandi-fade-in 0.3s ease-in-out;
}

/* 防止标题换行的通用样式 */
.course-details h4,
.favorite-info h4,
.recommend-info h4,
.article-content h4,
.work-info h4,
.completed-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 确保按钮文字不换行 */
.section-tab-btn span,
.filter-btn span,
.create-btn span {
    white-space: nowrap;
}

/* 优化课程指导师信息显示 */
.course-instructor {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 优化描述文本显示 */
.favorite-info p,
.recommend-info p,
.article-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
}

/* 确保选项卡标题区域不换行 */
.section-title-group h2,
.section-title-group p {
    white-space: nowrap;
}

/* 优化个人中心标题样式 */
.dashboard-section .section-title,
.dashboard-section .section-subtitle,
.dashboard-section .content-subtitle {
    border: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.dashboard-section .section-title::after,
.dashboard-section .section-subtitle::after,
.dashboard-section .content-subtitle::after {
    display: none !important;
}

/* 优化整体布局间距 */
.section-header {
    border: none;
    border-bottom: none;
}

.learning-center .section-content,
.management-center .section-content {
    border-top: none;
}